function

fun function(ref: KFunction<*>, filter: FunctionFilter.() -> Unit = {}): FunctionRef

Get a function from a function literal. Can only be called on literals, not variables.


fun function(fqName: FqName, filter: FunctionFilter.() -> Unit = {}): FunctionRef

Get a function with fqName, matching filter


fun Namespace.function(name: String, filter: FunctionFilter.() -> Unit = {}): FunctionRef

Get a function in the current Namespace with the given name, matching filter


fun Namespace.function(filter: FunctionFilter.() -> Unit = {}): FunctionRefDelegate

Get a function delegate in the current Namespace with the property's name, matching filter